import os
SETTINGS = 'settings'
os.environ['DJANGO_SETTINGS_MODULE'] = SETTINGS

from drill.models import Lesson, Document, Drill, Evaluator, Question, User, QuestionEvent

Lesson.objects.all().delete()
lesson01 = Lesson(name='Lesson 1', sname='lesson_01', shortdescr='The alphabet')
lesson01.save()

lesson07 = Lesson(name='Lesson 7', sname='lesson_07', shortdescr='Conjugation of verbs in simple present tense')
lesson07.save()

Document.objects.all().delete()
Document(name='Lesson Plan',sname='lesson_plan', lesson=lesson01).save()
Document(name='Tutorial',sname='tutorial', lesson=lesson01).save()

Drill.objects.all().delete()
Drill(name='Drill 1',sname='drill_01', question_qty=20, lesson=lesson07).save()
Drill(name='Drill 2',sname='drill_02', question_qty=20, lesson=lesson07).save()


Evaluator.objects.all().delete()
evaluator01 = Evaluator(name='verbs simple present tense conjugation', sname='verbs_simple_present_sense_conjugation')
evaluator01.save()



